<template>
    <div class="home">
        <p>父</p>
        <p>银子:{{ money }}</p>
        <p>车子：一辆{{ Car.brand}}车，价值 {{ Car.price}} 万元</p>
        <PageDome53sub ></PageDome53sub>
    </div>
</template>


<script setup lang="ts" name = "Page51">
import { provide, reactive, ref} from 'vue';
import PageDome53sub from './page/PageDome53sub.vue';
let money = ref(100);
let Car = reactive({
    brand:'大众',
    price:100
})
function updataA(val:number){
    money.value-=val
}
provide('Car',Car)
provide('money',{money,updataA})

</script>

<style lang="scss" scoped>

</style>